#;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#;;;
#;;; LUSH Lisp Universal Shell
#;;;   Copyright (C) 2009 Leon Bottou, Yann Le Cun, Ralf Juengling.
#;;;   Copyright (C) 2002 Leon Bottou, Yann Le Cun, AT&T Corp, NECI.
#;;; Includes parts of TL3:
#;;;   Copyright (C) 1987-1999 Leon Bottou and Neuristique.
#;;; Includes selected parts of SN3.2:
#;;;   Copyright (C) 1991-2001 AT&T Corp.
#;;;
#;;; This program is free software; you can redistribute it and/or modify
#;;; it under the terms of the Lesser GNU General Public License as 
#;;; published by the Free Software Foundation; either version 2 of the
#;;; License, or (at your option) any later version.
#;;;
#;;; This program is distributed in the hope that it will be useful,
#;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
#;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#;;; GNU General Public License for more details.
#;;;
#;;; You should have received a copy of the GNU General Public License
#;;; along with this program; if not, write to the Free Software
#;;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA
#;;;
#;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

@SET_MAKE@
SHELL = @SHELL@
VPATH = @srcdir@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = ..

OPTS = @OPTS@
DEFS = @DEFS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
host = @host@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CC = @CC@
CC = @CC@
GCC = @GCC@
CFLAGS = @CFLAGS@
CXX = @CXX@
CXXFLAGS = @CXXFLAGS@
F77 = @F77@
FFLAGS = @FFLAGS@
LDCC = @LDCC@
LDFLAGS = @LDFLAGS@
PTHREAD_FLAGS = @PTHREAD_FLAGS@
PTHREAD_LIBS = @PTHREAD_LIBS@
AR = @AR@
MV = @MV@
CP = @CP@
RM = @RM@
LN_S = @LN_S@
TOUCH = @TOUCH@
RANLIB = @RANLIB@
INSTALL = @INSTALL@
X_LIBS = @X_LIBS@
X_CFLAGS = @X_CFLAGS@
CC_PIC_FLAG = @CC_PIC_FLAG@
CC_EXP_FLAG = @CC_EXP_FLAG@
MAKESO = @MAKESO@
EXEEXT = @EXEEXT@
OBJEXT = @OBJEXT@
SOEXT = @SOEXT@

#;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

LUSH=lush2

INCS=-I${top_srcdir}/include

OBJS1=at.o binary.o cref.o calls.o arith.o check_func.o \
      date.o dh.o dump.o eval.o fileio.o \
      fltlib.o fpu.o function.o event.o graphics.o htable.o \
      idx1.o idx2.o idx3.o idx4.o index.o io.o list.o \
      main.o math.o misc.o cmm.o module.o number.o oostruct.o \
      regex.o storage.o string.o symbol.o toplevel.o user.o weakref.o \
      ps_driver.o rng.o lisp_driver.o dyldinfo.o

@UNIX_YES@OBJS3=unix.o
@UNIX_YES@@X_YES@OBJS2=x11_driver.o
@WIN32_YES@OBJS3=win32.o win_driver.o
@BFD_YES@OBJS4=dldbfd.o
@CPP_YES@OBJS5=cpp.o

LUSHFLAGS = ${DEFS} ${OPTS} ${INCS} ${PTHREAD_FLAGS} ${X_CFLAGS}
LUSHLIBS = ${X_LIBS} ${LIBS} ${PTHREAD_LIBS}
LUSHCOBJS = ${OBJS1} ${OBJS2} ${OBJS3} ${OBJS4} 
LUSHOBJS = ${LUSHCOBJS} ${OBJS5}
LDCCFLAGS= ${LDFLAGS} ${LUSHFLAGS} ${CC_EXP_FLAG}

all: ${LUSH}

lush2: ${LUSHOBJS}
	${LDCC} ${LDCCFLAGS} -o $@ ${LUSHOBJS} ${LUSHLIBS}

depend: FORCE
	-@test x${GCC} = xyes && ${MAKE} depend-gcc

depend-gcc: 
	@echo "Computing dependencies." 
	@echo '### DEPENDENCIES' > Makefile.dep
	@${CC} -MM -DMAKEDEPEND ${CPPFLAGS} ${CFLAGS} ${INCS} ${DEFS} \
	   `echo ${LUSHCOBJS} | sed -e 's:\.o:.c:g'` >> Makefile.dep
	@echo "Updating Makefile." ;\
	 ( sed -e '/^### DEPENDENCIES$$/,$$d' Makefile;\
	   cat  Makefile.dep ) > Makefile.new ;\
	 ${MV} Makefile.new Makefile
	@if test -w Makefile.in ; then echo "Updating Makefile.in." ;\
	 ( sed -e '/^### DEPENDENCIES$$/,$$d' Makefile.in;\
	   sed -e 's:/usr/include/[^ ]*::g' Makefile.dep ) > Makefile.new ;\
	 ${MV} Makefile.new Makefile.in ; fi ; true

clean: FORCE
	-${RM} 2>/dev/null Makefile.dep 
	-${RM} 2>/dev/null ${LUSH}
	-${RM} 2>/dev/null ${LUSHOBJS}

distclean: clean FORCE
	-${RM} 2>/dev/null Makefile

FORCE:

.PHONY: FORCE

.SUFFIXES: .c .cpp

.c.o:
	${CC} ${CPPFLAGS} ${CFLAGS} ${LUSHFLAGS} -c $<

.cpp.o:
	${CXX} ${CPPFLAGS} ${CFLAGS} ${LUSHFLAGS} -c $<

${LUSHOBJS}: Makefile


### DEPENDENCIES
at.o: at.c ../include/header.h ../include/define.h ../include/lushconf.h \
  ../include/fltlib.h ../include/cmm.h ../include/cmm_private.h \
  ../include/dh.h ../include/idxmac.h ../include/idxops.h \
  ../include/check_func.h
binary.o: binary.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h
cref.o: cref.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h
calls.o: calls.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h
arith.o: arith.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h ../include/amath-macros.h
check_func.o: check_func.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h ../include/dh.h
date.o: date.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h
dh.o: dh.c ../include/header.h ../include/define.h ../include/lushconf.h \
  ../include/fltlib.h ../include/cmm.h ../include/cmm_private.h \
  ../include/dh.h ../include/idxmac.h ../include/idxops.h \
  ../include/check_func.h
dump.o: dump.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h
eval.o: eval.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h
fileio.o: fileio.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h ../include/lushconf.h
fltlib.o: fltlib.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h
fpu.o: fpu.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h
function.o: function.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h
event.o: event.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h ../include/graphics.h
graphics.o: graphics.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h ../include/graphics.h
htable.o: htable.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h
idx1.o: idx1.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h ../include/idx.h
idx2.o: idx2.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h ../include/idx.h
idx3.o: idx3.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h ../include/idx.h
idx4.o: idx4.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h ../include/idx.h
index.o: index.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h
io.o: io.c ../include/header.h ../include/define.h ../include/lushconf.h \
  ../include/fltlib.h ../include/cmm.h ../include/cmm_private.h \
  ../include/dh.h ../include/idxmac.h ../include/idxops.h \
  ../include/check_func.h
list.o: list.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h
main.o: main.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h
math.o: math.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h ../include/amath-macros.h
misc.o: misc.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h
cmm.o: cmm.c ../include/lushconf.h ../include/cmm.h
module.o: module.cpp ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h ../include/dh.h \
  ../include/dldbfd.h ../include/dyldinfo.hpp
dyldinfo.o: dyldinfo.cpp ../include/dyldinfo.hpp  ../include/Architectures.hpp \
  ../include/MachOFileAbstraction.hpp ../include/FileAbstraction.hpp \
  ../include/MachOTrie.hpp
number.o: number.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h
oostruct.o: oostruct.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h ../include/dh.h
regex.o: regex.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h
storage.o: storage.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h ../include/dh.h
string.o: string.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h
symbol.o: symbol.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h
toplevel.o: toplevel.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h
user.o: user.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h
weakref.o: weakref.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h
ps_driver.o: ps_driver.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h ../include/graphics.h
rng.o: rng.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h
lisp_driver.o: lisp_driver.c ../include/header.h ../include/define.h \
  ../include/lushconf.h ../include/fltlib.h ../include/cmm.h \
  ../include/cmm_private.h ../include/dh.h ../include/idxmac.h \
  ../include/idxops.h ../include/check_func.h ../include/graphics.h
x11_driver.o: x11_driver.c ../include/lushconf.h ../include/header.h \
  ../include/define.h ../include/lushconf.h ../include/fltlib.h \
  ../include/cmm.h ../include/cmm_private.h ../include/dh.h \
  ../include/idxmac.h ../include/idxops.h ../include/check_func.h \
  ../include/graphics.h
unix.o: unix.c ../include/lushconf.h ../include/header.h \
  ../include/define.h ../include/lushconf.h ../include/fltlib.h \
  ../include/cmm.h ../include/cmm_private.h ../include/dh.h \
  ../include/idxmac.h ../include/idxops.h ../include/check_func.h \
  ../include/lushmake.h
dldbfd.o: dldbfd.c ../include/lushconf.h ../include/dldbfd.h
